(() => {
    //定义接口
    interface IPerson {
        firstName: String,
        lastName: String
    }

    function showFullName(params: IPerson) {
        return params.firstName + '-' + params.lastName
    }
    //定义一个对象
    const person = {
        firstName: "东方",
        lastName: "不败"
    }
    //展示姓名
    console.log(showFullName(person));
})()